package com.danciyixue.boot.dcyx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.danciyixue.boot.dcyx.model.entity.DcyxUsers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.danciyixue.boot.dcyx.model.query.DcyxUsersQuery;
import com.danciyixue.boot.dcyx.model.vo.DcyxUsersVO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 用户信息Mapper接口
 *
 * @author youlaitech
 * @since 2025-06-15 16:58
 */
@Mapper
public interface DcyxUsersMapper extends BaseMapper<DcyxUsers> {

    /**
     * 获取用户信息分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<DcyxUsersVO>} 用户信息分页列表
     */
    Page<DcyxUsersVO> getDcyxUsersPage(Page<DcyxUsersVO> page, DcyxUsersQuery queryParams);

    DcyxUsers getByUsername(String username);

    DcyxUsersVO getDcyxUserMe(Long userId);
}
